<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>系统审计,操作日志基本信息</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="${ctx}/layui/css/layui.css" media="all"/>
    <link rel="stylesheet" href="${ctx}/systemStatic/style/admin.css">
    <link rel="stylesheet" href="${ctx}/iconfont/iconfont.css"/>
    <link rel="stylesheet" href="${ctx}/css/public.css">
    <script type="text/javascript">
        var __ctx = "${ctx}";
    </script>
</head>
<body>

<script type="text/html" template>
<form class="layui-form"  requrl="{{ serverPath.systemPath + layui.setter.sysLinkPath }}sysAudit/get" style="padding: 0px 30px;width: 940px;margin-left: auto;margin-right: auto" lay-filter="sysAuditDataForm">

    <div style="margin: 15px 0px;height: 371px;overflow: auto;">
        <div class="layui-form-item">
            <label class="layui-form-label">操作名称</label>
            <div class="layui-input-inline" style="width: 35%;">
                <input type="text" name="opname"  placeholder="请输入操作名称"
                       autocomplete="off" class="layui-input " maxlength="50" fieldname="opname" disabled>
            </div>
            <label class="layui-form-label">执行时间</label>
            <div class="layui-input-inline" style="width: 35%;">
                <input type="text" name="exetime"  placeholder="请输入执行时间"
                       autocomplete="off" class="layui-input dateTimeFiled time-init datetimes" maxlength="50" fieldname="exetime" disabled>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">执行人姓名</label>
            <div class="layui-input-inline" style="width: 35%;">
                <input type="text" name="executor"  placeholder="请输入执行人姓名"
                       autocomplete="off" class="layui-input " maxlength="50" fieldname="executor" disabled>
            </div>
            <label class="layui-form-label">执行人所在组织</label>
            <div class="layui-input-inline" style="width: 35%;">
                <input type="text" name="exeOrgName"  placeholder="请输入执行人所在组织"
                       autocomplete="off" class="layui-input " maxlength="50" fieldname="exeOrgName" disabled>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">所属模块</label>
            <div class="layui-input-inline" style="width: 35%;">
                <input type="text" name="ownermodel"  placeholder="请输入所属模块"
                       autocomplete="off" class="layui-input " maxlength="50" fieldname="ownermodel" disabled>
            </div>
            <label class="layui-form-label">日志类型</label>
            <div class="layui-input-inline" style="width: 35%;">
                <input type="text" name="exectype"  placeholder="请输入日志类型"
                       autocomplete="off" class="layui-input " maxlength="50" fieldname="exectype" disabled>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">调用方法</label>
            <div class="layui-input-inline" style="width: 35%;">
                <input type="text" name="exemethod"  placeholder="请输入调用方法"
                       autocomplete="off" class="layui-input " maxlength="50" fieldname="exemethod" disabled>
            </div>
            <label class="layui-form-label">调用URL</label>
            <div class="layui-input-inline" style="width: 35%;">
                <input type="text" name="requesturi"  placeholder="请输入调用URL"
                       autocomplete="off" class="layui-input " maxlength="50" fieldname="requesturi" disabled>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">操作系统版本</label>
            <div class="layui-input-inline" style="width: 35%;">
                <input type="text" name="osversion"  placeholder="请输入操作系统版本"
                       autocomplete="off" class="layui-input " maxlength="50" fieldname="osversion" disabled>
            </div>
            <label class="layui-form-label">浏览器版本</label>
            <div class="layui-input-inline" style="width: 35%;">
                <input type="text" name="browserinfo"  placeholder="请输入浏览器版本"
                       autocomplete="off" class="layui-input " maxlength="50" fieldname="browserinfo" disabled>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">用户代理信息</label>
            <div class="layui-input-inline" style="width: 35%;">
                <input type="text" name="useragent"  placeholder="请输入访问方式"
                       autocomplete="off" class="layui-input " maxlength="50" fieldname="useragent" disabled>
            </div>
            <label class="layui-form-label">详细信息</label>
            <div class="layui-input-inline" style="width: 35%;">
                <input type="text" name="detail"  placeholder="请输入明细"
                       autocomplete="off" class="layui-input " maxlength="50" fieldname="detail" disabled>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">IP地址</label>
            <div class="layui-input-inline" style="width: 35%;">
                <input type="text" name="fromip"  placeholder="请输入IP地址"
                       autocomplete="off" class="layui-input " maxlength="50" fieldname="fromip" disabled>
            </div>
            <label class="layui-form-label">执行人ID</label>
            <div class="layui-input-inline" style="width: 35%;">
                <input type="text" name="executorid"
                       autocomplete="off" class="layui-input " maxlength="50" fieldname="executorid" disabled>
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <div style="text-align: center;">
            <button type="reset" id="closeWindow" class="layui-btn btn-n layui-btn-danger btn-save">关闭</button>
        </div>
    </div>
</form>
</script>
<script src="${ctx}/public/component.js" type="text/javascript"></script>
<script src="${ctx}/layui/layui.js"></script>
<script>

    layui.config({
        base: serverPath.systemPath + staticPath.systemPath //静态资源所在路径
    }).extend({
        index: 'index' //主入口模块
    }).use(['index','common','laydate','jquery'], function () {
        var laydate = layui.laydate;
        var $ = layui.jquery;
        var dateTimeFiledLen = $(".dateTimeFiled");
        for(var i=0;i<dateTimeFiledLen.length;i++){
            laydate.render({
                elem: dateTimeFiledLen[i] //指定元素
                ,type: 'datetime'
                ,trigger: 'click'
            });
        }

        //关闭当前页面
        $("#closeWindow").click(function () {
            parent.layer.close(parent.layer.getFrameIndex(window.name));
        })

        var common = layui.common;
        common.updateForm({
            name:'sysAuditDataForm',
            idValue:"${auditid}",
            primary:"auditid",
            updateCallback:function (data) {
                if (common.filterRecord(data)) {
                    layer.alert(data.msg, {skin: 'btn-class'},function () {
                        parent.layer.close(index);
                        parent.layer.close(parent.layer.getFrameIndex(window.name));
                        parent.layui.table.reload('sysAuditTable');
                        parent.layui.totalFilter.init('sysAuditTable');
                        parent.layui.Initializations()
                    });
                } else {
                    window.parent.layer.alert(data.msg);
                }
                return false;
            }
        });
    });
</script>
</body>
</html>
